﻿<%@ Page Title="Prochazeni galeriemi" Language="C#" MasterPageFile="~/index.Master" AutoEventWireup="true"
    CodeBehind="UkazGalerie.aspx.cs" Inherits="Fotobanka.UkazGalerie" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Obsah" runat="server">
    <center>
        <h1>
            Prochazeni galeriemi</h1>
        <br />
        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
    </center>
    <br />
    <br />
    <table>
        <tr><td colspan="2">
            <asp:Label ID="Label2" runat="server" Text="Vyhledat podle emailu"></asp:Label></td></tr>
        <tr><td>
            <asp:TextBox ID="emailSearch" runat="server" BorderColor="Black" 
                BorderWidth="1px"></asp:TextBox></td><td>
                <asp:Button ID="emailSearchButton" runat="server" Text="Vyhledat" 
                    BorderColor="Black" BorderWidth="1px" onclick="emailSearchButton_Click" /></td></tr>
        <tr><td colspan="2">
            <asp:Label ID="Label3" runat="server" Text="Vyhledat podle popisu fotky nebo galerie"></asp:Label></td></tr>
        <tr><td>
            <asp:TextBox ID="descSearch" runat="server" BorderColor="Black" 
                BorderWidth="1px"></asp:TextBox></td><td>
                <asp:Button ID="descSearchButton" runat="server" Text="Vyhledat" 
                    BorderColor="Black" BorderWidth="1px" onclick="descSearchButton_Click" /></td></tr>
    </table>
    <br />
    <asp:Repeater ID="galerie_rep" runat="server" EnableTheming="true">
        <HeaderTemplate>
            <div style="width: 50%;">
        </HeaderTemplate>
        <ItemTemplate>
            <table style="margin-top: 5px; border-color: Black; border-width: 1px; color: Green;">
                <tr>
                    <td>
                        Nazev:
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "name")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        Popis:
                    </td>
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "description")%>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <a href="UkazGalerii.aspx?id_gal=<%# DataBinder.Eval(Container.DataItem, "id") %>">Zobrazit</a>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <FooterTemplate>
            <hr />
            </div>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Ovladaci_panel" runat="server">
</asp:Content>
